//package com.huarui.purchaseOrder.engine;
//
//import org.apache.mina.statemachine.annotation.State;
//import org.apache.mina.statemachine.annotation.Transition;
//import com.huarui.purchaseOrder.model.PurOrSaleOrder;
//import com.huarui.purchaseOrder.model.PurOrSaleOrderDetail;
//
//
///**
// * void commit(PurOrSaleOrder order, PurOrSaleOrderDetail detail);
// * 
// * void disallow(int orderId);
// * 
// * void edit(PurOrSaleOrder order, PurOrSaleOrderDetail detail);
// * 
// * void accept(PurOrSaleOrder order, PurOrSaleOrderDetail detail);
// * 
// * void ship(int orderId);
// * 
// * void receive(int orderId);
// * 
// * @author zhengtao.wuzt
// * 
// */
//
//public class PurchaseEngineHandler {
//	
//	private  PurchaseContextDao  purchaseContextDao;
//	
//	
//
//	public PurchaseContextDao getPurchaseContextDao() {
//		return purchaseContextDao;
//	}
//
//	public void setPurchaseContextDao(PurchaseContextDao purchaseContextDao) {
//		this.purchaseContextDao = purchaseContextDao;
//	}
//
//	@State
//	public static final String ROOT = "Root";
//
//	/**
//	 * 草稿状态
//	 */
//	@State(ROOT)
//	public static final String DRAFTING = "Drafting";
//
//	/**
//	 * 待卖家处理
//	 */
//	@State(ROOT)
//	public static final String DEALING_WITH_SELLER = "DealingWithSeller";
//
//	/**
//	 * 待发货
//	 */
//	@State(ROOT)
//	public static final String TO_BE_SHIPPED = "ToBeShipped";
//
//	/**
//	 * 待收货
//	 */
//	@State(ROOT)
//	public static final String PENDING_RECEIPT = "PendingReceipt";
//
//	/**
//	 * 已收货
//	 */
//	@State(ROOT)
//	public static final String HAS_BEEN_RECEIVING = "HasBeenReceiving";
//	
///*	@Transition(on = "commit", in = DRAFTING, next = DEALING_WITH_SELLER)
//	public	void commit(@LookupParameter PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
//
//	}*/
//
//	@Transition(on = "commit2unregistSeller", in = DRAFTING, next = PENDING_RECEIPT)
//	public void  commitPurchaseOrder2unregistSeller( PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
//
//	}
//
//	@Transition(on = "commit2registedSeller", in = DRAFTING, next = DEALING_WITH_SELLER)
//	public void  commitPurchaseOrder2registedSeller( PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
//
//	}
//
//	@Transition(on = "disallow", in = DEALING_WITH_SELLER, next = DRAFTING)
//	public void disallowPurchaseOrder(int orderId) {
//
//	}
//
//	@Transition(on = "edit", in = DEALING_WITH_SELLER, next = DEALING_WITH_SELLER)
//	public void  editPurchaseOrder(PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
//
//	}
//
//	@Transition(on = "accept", in = DEALING_WITH_SELLER, next = TO_BE_SHIPPED)
//	public void acceptPurchaseOrder(PurOrSaleOrder order, PurOrSaleOrderDetail detail) {
//	}
//
//	@Transition(on = "ship", in = TO_BE_SHIPPED, next = PENDING_RECEIPT)
//	public void shipPurchaseOrder(int orderId) {
//
//	}
//
//	@Transition(on = "receive", in = PENDING_RECEIPT, next = HAS_BEEN_RECEIVING)
//	public void receive(int orderId) {
//
//	}
//
//	
//	
//	
//
//
//}
